import arcpy

count = arcpy.GetParameter(0)
a = count*count*2
i=1
for j in range(1, 100):
    if count*(2**j) < a:
        i=i+1
arcpy.SetParameterAsText(1, i)
